<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p>在页面显示一个计时</p>
		<p id="demo"></p>
		
		<script>
		var time=setInterval(function(){myTimer()},1000);
		function myTimer(){
			var mun=1,2,3,4,5,6;
			var t=mun.toLocaleTimeString();
			document.getElementById("demo").innerHTML=t;
		}
		</script>
	</body>
</html>
